package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: CustStatusEnum
 * @projectName smart-sail
 * @description: 合同状态1初始状态2生产中3已发货4催款中5已完成
 * @date 2019/7/311:57
 */
public enum ContractStatusEnum implements IEnum {
    DSC(1,"待生产"),
    SCZ(2,"生产中"),
    YFH(3,"已发货"),
    CKZ(4,"催款中"),
    YWC(5,"已完成")
    ;

    ContractStatusEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }
    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
